<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var data = {
           student:[
               {
                   name:"laowang",
                   age:19,
                   sex:"nan",
                   hobby:["篮球","游泳"]
               },
               {
                   name:"xiaozhang",
                   age:20,
                   sex:"nv",
                   hobby:["撩妹","酒吧"]
               }
           ]
       }
       var str = JSON.stringify(data);
       var str2 = str;
       var json2 = JSON.parse(str2);
       console.log(json2 === data);//false 说明二者地址不相同
       console.log(json2.student[0].hobby === data.student[0].hobby);//false
    </script>
</body>
</html>